using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class DragSlider : Slider,IEndDragHandler,IBeginDragHandler{
    public Action<PointerEventData> OnEndDragDel;
    public Action<PointerEventData> OnDragDel;
    public Action<PointerEventData> OnBeginDragDel;
    public void OnBeginDrag(PointerEventData eventData)
    {
        if (OnBeginDragDel != null)
            OnBeginDragDel(eventData);
    }

    public override void OnDrag(PointerEventData eventData)
    {
        base.OnDrag(eventData);
        if (OnDragDel != null)
            OnDragDel(eventData);
    }

    public void OnEndDrag(PointerEventData eventData)
    {
        if (OnEndDragDel != null)
            OnEndDragDel(eventData);
    }

}
